package com.snail.test.utils;

import com.alibaba.fastjson.JSON;
import com.ejlchina.okhttps.HTTP;
import com.ejlchina.okhttps.HttpResult;

import java.util.Date;

/**
 * @author liwenbo
 * @version 1.0
 * @description: TODO
 * @date 2021/9/14 6:30 下午
 */
public class HttpUtil {

    public static void main(String[] args) {
//        Date.from(ins)
        HTTP http = HTTP.builder()
                .baseUrl("http://api.example.com")
                .build();
        HttpResult httpResult = http.sync("http://www.baidu.com").post();
        System.out.println(JSON.toJSONString(httpResult));

    }
}
